<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html>
<html lang="zh-CN"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<title><?php if(isset($SEO['title']) && !empty($SEO['title'])) { ?><?php echo $SEO['title'];?><?php } ?><?php echo $SEO['site_title'];?></title>
<meta name="keywords" content="<?php echo $SEO['keyword'];?>">
<meta name="description" content="<?php echo $SEO['description'];?>">

<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/css.css" rel="stylesheet">
<!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
      .login_btn{float: left;text-align: center;width: 50%;color: white;}
      .yj_bar{width: 100%;height: 40px;line-height: 40px;}
    </style>
</head>
<body>
<nav class="text-center">
  <h1> <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"block\" data=\"op=block&tag_md5=98e911fb3ab44f68f53a6dd29c566b33&pos=logo\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">添加碎片</a>";}$block_tag = pc_base::load_app_class('block_tag', 'block');echo $block_tag->pc_tag(array('pos'=>'logo',));?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?></h1>
</nav>
<?php if($_userid > 0) { ?>
<div class="yj_bar" style="padding: 0 10px;">
  <?php echo $_username;?>,已登录
  <a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=logout&siteid=<?php echo $siteid;?>" style="float: right;">退出</a>
</div>
<?php } else { ?>
<div style="width: 100%;height: 40px;line-height: 40px;">
  <a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=register&siteid=<?php echo $siteid;?>"><div class="login_btn" style="background: #663300;">注册<?php echo $_userid;?></div></a> 
  <a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=login&siteid=<?php echo $siteid;?>"><div class="login_btn" style="background: #999933;">登录</div></a>
</div>
<?php } ?>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> 
  <!-- Indicators -->
  <ol class="carousel-indicators">
    <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=844283f5219ac8b8a7eed2ba5af64081&action=lists&catid=11&order=listorder+DESC&num=5&cache=3600\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$tag_cache_name = md5(implode('&',array('catid'=>'11','order'=>'listorder DESC',)).'844283f5219ac8b8a7eed2ba5af64081');if(!$data = tpl_cache($tag_cache_name,3600)){$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'11','order'=>'listorder DESC','limit'=>'5',));}if(!empty($data)){setcache($tag_cache_name, $data, 'tpl_data');}}?>
<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
    <li data-target="#carousel-example-generic" data-slide-to="<?php if($n==1 ) { ?>0<?php } ?><?php if($n==2 ) { ?>1<?php } ?><?php if($n==3 ) { ?>2<?php } ?><?php if($n==4 ) { ?>3<?php } ?><?php if($n==5 ) { ?>4<?php } ?>" <?php if($n==1 ) { ?>class="active<?php } ?>"></li>
    
     <?php $n++;}unset($n); ?>
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>	
   
  </ol>
  
  <!-- Wrapper for slides -->
  <div class="carousel-inner" role="listbox">
  <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=844283f5219ac8b8a7eed2ba5af64081&action=lists&catid=11&order=listorder+DESC&num=5&cache=3600\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$tag_cache_name = md5(implode('&',array('catid'=>'11','order'=>'listorder DESC',)).'844283f5219ac8b8a7eed2ba5af64081');if(!$data = tpl_cache($tag_cache_name,3600)){$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'11','order'=>'listorder DESC','limit'=>'5',));}if(!empty($data)){setcache($tag_cache_name, $data, 'tpl_data');}}?>
<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?> <div class="item<?php if($n==1 ) { ?> active<?php } ?>"><a href="<?php echo $r['url'];?>" target="_blank"><img src="<?php echo $r['thumb'];?>" class="img-responsive  center-block" > </a></div>
   <?php $n++;}unset($n); ?>
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>	
  </div>
  
  <!-- Controls --> 
  <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div>
<div id="FontScroll">
  <ul>
    <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=9bb4293406d0f2fb55bd24f0daa01d02&action=lists&catid=10&order=listorder+DESC&num=10&cache=3600\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$tag_cache_name = md5(implode('&',array('catid'=>'10','order'=>'listorder DESC',)).'9bb4293406d0f2fb55bd24f0daa01d02');if(!$data = tpl_cache($tag_cache_name,3600)){$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'10','order'=>'listorder DESC','limit'=>'10',));}if(!empty($data)){setcache($tag_cache_name, $data, 'tpl_data');}}?>
<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
    <li><a href="<?php echo $r['url'];?>"  title='<?php echo $r['title'];?>'  ><?php echo str_cut($r[title],58);?></a></li>
       <?php $n++;}unset($n); ?>
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
  </ul>
</div>
<div class="box">
  <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=108aa9c51a2fb721ce6a1e007e7de77e&action=lists&catid=9&order=listorder+DESC&num=100&cache=3600&moreinfo=1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$tag_cache_name = md5(implode('&',array('catid'=>'9','order'=>'listorder DESC','moreinfo'=>'1',)).'108aa9c51a2fb721ce6a1e007e7de77e');if(!$data = tpl_cache($tag_cache_name,3600)){$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'9','order'=>'listorder DESC','moreinfo'=>'1','limit'=>'100',));}if(!empty($data)){setcache($tag_cache_name, $data, 'tpl_data');}}?>
<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
<div class="row boxblk">
<a href="<?php echo $r['url'];?>">
<div class="col-xs-3"> <img src="<?php echo $r['thumb'];?>" class="img-responsive" ></div>
<div class="col-xs-9"><div class="row biaoti">
<div class="col-xs-8 tit"><?php echo $r['title'];?></div>
<div class="col-xs-4 hd text-right"><span><?php echo $r['zd3'];?></span></div></div>
<p class="dy1"><?php echo $r['zda'];?></p> 
<p class="dy2"><?php echo $r['zdb'];?></p> 
</div>
</a> <div class="cl"></div></div> 

 <?php $n++;}unset($n); ?>
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>


</div>
<footer class="text-center"><?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"block\" data=\"op=block&tag_md5=8d50ff194b6e6d7fdbc9d62dbf1585d5&pos=bq\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">添加碎片</a>";}$block_tag = pc_base::load_app_class('block_tag', 'block');echo $block_tag->pc_tag(array('pos'=>'bq',));?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?></footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> 
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script> 
<!-- Include all compiled plugins (below), or include individual files as needed --> 
<script src="js/bootstrap.min.js"></script> 
<script src="js/js.js"></script> 
</body>
</html>